package com.jeejio.train.service;

import com.jeejio.train.entity.Course;
import com.jeejio.train.util.UserException;

import java.util.Date;
import java.util.List;

public interface CourseService {

    boolean create(Course course);

    Course findById(Integer id);

    List<Course> findByDeliveryDate(Date deliveryDate, byte draft);

    boolean modify(Course course);

    boolean deleteByLecturer(Course course);

    List<Date> findHasCourseDates(Date between, Date and) throws UserException;

    List<Course> findHistory();
}
